{template 'common/header'}
<div class="main">
	<form action="" method="post" class="form-horizontal form" id="form">
		<div class="panel panel-default">
			<div class="panel-heading">微招聘 - 申请列表
				<select id="company" style="float:right;">
				<option value="0">请选择</option>
				{loop $company $key $item}
					<option value="{$item['id']}" {if $item['id']==$companyid}selected{/if}>{$item['name']}</option>
				{/loop}
				</select>
			</div>
			<div class="panel-body">
				<div class="table-responsive panel-body">
					<table class="table table-hover" style="min-width: 300px;">
						<thead class="navbar-inner">
							<tr>
								<th width="5%">ID</th>
								<th>昵称</th>
								<th width="5%">头像</th>
								<th>姓名</th>
								<th>申请公司</th>
								<th>申请职位</th>
								<th>申请薪酬</th>
								<th>手机</th>
								<th>申请时间</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							{loop $cache $key $item}
							<tr>
								<td>{$item['id']}</td>
								<td>{$item['nickname']}</td>
								<td><img style="width:100%" src="{$item['avatar']}" alt="{$item['nickname']}"></td>
								<td>{$item['name']}</td>
								<td>{$item['company']}</td>
								<td>{$item['position']}</td>
								<td>{$item['payment']}</td>
								<td>{$item['phone']}</td>
								<td>{$item['createtime']}</td>
								<td>
									<a onclick="if(!confirm('设定后将不再显示！')) return false;" href="{php echo $this->createWebUrl('user', array('op'=>'delete', 'id'=>$item['id']));}" class="btn btn-default btn-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="设置已阅"><i class="fa fa-eye"></i></a>
								</td>
							</tr>
							{/loop}
							{if empty($cache)}
							<tr>
								<td colspan="4">
									尚未有数据
								</td>
							</tr>
							{/if}
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</form>
</div>
<script>
require(['jquery','util'],function($,util){
	$('#company').on('change',function(){
		util.message(window.location.href);
		window.location.href='{php echo $this->createWebUrl("User")}'+'&company='+$('#company').val();
	})
});
</script>
{template 'common/footer'}